<template>
  <div>
    <el-result icon="success" :subTitle="truckOrderInfo.startJname">
      <template slot="extra">
        <el-card>
          <p>预计到达：{{ truckOrderInfo.endJname }}</p>
          <p>运输任务：{{ truckOrderInfo.truckid }}</p>
          <p>车辆：{{ truckOrderInfo.plate }}</p>
          <p>司机：{{ truckOrderInfo.uname }}</p>
          <p>到达时间：{{ truckOrderInfo.endTime }}</p>
        </el-card>
      </template>
    </el-result>
  </div>
</template>

<script>
import OrderAPI from '../../../../src/api/logisticsmanagement/ordermanagement/orderAPI'

export default ({
  name: 'truckDataInfo',
  props: ['tid'],
  data() {
    return {
      truckOrderInfo: {}
    }
  }, methods: {
    dataInit() {
      // 获取运输信息
      OrderAPI.getTruckOrderInfo(this.tid).then(({data}) => {
        this.truckOrderInfo = data.data
      })
    }
  }, created() {
    this.dataInit()
  }
})
</script>

<style>

</style>
